package org.martyn.danbooru.types;

import java.io.Serializable;
import java.util.ArrayList;
import java.util.Date;

public class Post implements DanbooruType, Serializable
{
	private static final long serialVersionUID = -4535444990166525877L;

	public final static String RATING_SAFE = "s";
	public final static String RATING_EXPLICIT = "e";
	public final static String RATING_QUESTIONABLE = "q";

	private long id;

	// TODO: uitzoeken wat het doet
	private Date createdAt;
	private int score;
	private String author;
	private String status;
	private String rating;
	public ArrayList<Tag> TagList;
	// File
	private String fileUrl;
	private int fileWidth;
	private int fileHeight;
	private long fileSize;
	private String fileMd5;
	// Preview File
	private String previewUrl;
	private int previewWidth;
	private int previewHeight;

	// Gets and Sets
	public long getId()
	{
		return id;
	}

	public void setId(long id)
	{
		this.id = id;
	}

	public Date getCreatedAt()
	{
		return createdAt;
	}

	public void setCreatedAt(Date createdAt)
	{
		this.createdAt = createdAt;
	}

	public int getScore()
	{
		return score;
	}

	public void setScore(int score)
	{
		this.score = score;
	}

	public String getAuthor()
	{
		return author;
	}

	public void setAuthor(String author)
	{
		this.author = author;
	}

	public String getStatus()
	{
		return status;
	}

	public void setStatus(String status)
	{
		this.status = status;
	}

	public String getRating()
	{
		return rating;
	}

	public void setRating(String rating)
	{
		this.rating = rating;
	}

	public String getFileUrl()
	{
		return fileUrl;
	}

	public void setFileUrl(String fileUrl)
	{
		this.fileUrl = fileUrl;
	}

	public int getFileWidth()
	{
		return fileWidth;
	}

	public void setFileWidth(int fileWidth)
	{
		this.fileWidth = fileWidth;
	}

	public int getFileHeight()
	{
		return fileHeight;
	}

	public void setFileHeight(int fileHeight)
	{
		this.fileHeight = fileHeight;
	}

	public long getFileSize()
	{
		return fileSize;
	}

	public void setFileSize(long fileSize)
	{
		this.fileSize = fileSize;
	}

	public String getFileMd5()
	{
		return fileMd5;
	}

	public void setFileMd5(String fileMd5)
	{
		this.fileMd5 = fileMd5;
	}

	public String getPreviewUrl()
	{
		return previewUrl;
	}

	public void setPreviewUrl(String previewUrl)
	{
		this.previewUrl = previewUrl;
	}

	public int getPreviewWidth()
	{
		return previewWidth;
	}

	public void setPreviewWidth(int previewWidth)
	{
		this.previewWidth = previewWidth;
	}

	public int getPreviewHeight()
	{
		return previewHeight;
	}

	public void setPreviewHeight(int previewHeight)
	{
		this.previewHeight = previewHeight;
	}

}
